package com.pf.java.File;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

/**
 * 转换流
 *
 * ClassName:IO6
 * Package:com.pf.java.File
 *
 * @author: pf
 * @date: 2021/11/6-15:46
 */
public class IO6 {

    public static void main(String[] args) {
        try (
                InputStreamReader isr = new InputStreamReader(System.in);
                BufferedReader br= new BufferedReader(isr);
                ) {
            String line = null;
            while ((line = br.readLine()) != null) {
                if (line.equalsIgnoreCase("exit")) {
                    break;
                }
                System.out.println(line);
            }

        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}
